// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import './assets/css/reset.css'

import ElementUI from 'Element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import  store  from  './store'
Vue.use(ElementUI)
Vue.config.productionTip = false
Vue.prototype.$imgUrl = 'http://localhost:3000'
import  elBread from './common'  //这是一个对象
for(let i in elBread){
    Vue.component(i,elBread[i])
}
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
